package com.l2jserver.gameserver.handler;

import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.entity.RebirthManager;

/**
 *This will simply manage any custom 'Enter World callers' needed.<br>
 *Rather then having to add them to the core's. (yuck!)
 *
 * @author  JStar
 */
public class WorldHandler
{
	
	private static WorldHandler _instance = null;
	
	private WorldHandler()
	{
		//Do Nothing ^_-
	}
	
	/** Receives the non-static instance of the RebirthManager.*/
	public static WorldHandler getInstance()
	{
		if (_instance == null)
		{
			_instance = new WorldHandler();
		}
		return _instance;
	}
	
	/** Requests entry into the world - manages appropriately. */
	public void enterWorld(L2PcInstance player)
	{
		RebirthManager.getInstance().grantRebirthSkills(player);
	}
	
	/** Requests removal from the world - manages appropriately. */
	public void exitWorld(L2PcInstance player)
	{
	}
	
}
